import axios from "@/request/axios";
import {
  commonResponse,
  CategoryListReqForm,
  CategoryListResForm,
  CategoryAddReqForm,
  CategoryListByTypeReqForm,
} from "@/entity/entityDefine";

export const categoryList = (data: CategoryListReqForm) => {
  return axios.get<CategoryListResForm>("/category/page", data);
};

export const categoryAdd = (data: CategoryAddReqForm) => {
  return axios.post<commonResponse>("/category/", data);
};

export const categoryListByType = (data: CategoryListByTypeReqForm) => {
  return axios.get<CategoryListResForm>("/category/list", data);
};

export const categoryAllList = () => {
  return axios.get<CategoryListResForm>("/category/list");
};



// export const employeeStateUpdate = (data: EmployeeStateUpdateReq) => {
//   return axios.put<commonResponse>("/employee/", data);
// };
